package com.gopay.common.rcs.bean;

import com.gopay.common.domain.BaseEntity;

/**
 * 客户域名校验状态
 * @author liujy
 *
 */
public class DomainnameCheckStatus extends BaseEntity {
    private static final long serialVersionUID = 4913681176140595171L;
    private String custId;

    public DomainnameCheckStatus(String custId) {
        super();
        this.custId = custId;
    }

    private boolean globalOn;// 全局域名校验是否开启
    private boolean merchantOn;// 商户域名校验是否开启
    private boolean fuzzyOn;// 商户模糊域名校验是否开启
    /** 合法值 */
    private String legalValue;

    public boolean isOn() {
        return globalOn || merchantOn;
    }

    public String getLegalValue() {
        return legalValue;
    }

    public void setLegalValue(String legalValue) {
        this.legalValue = legalValue;
    }

    public boolean isGlobalOn() {
        return globalOn;
    }

    public void setGlobalOn(boolean globalOn) {
        this.globalOn = globalOn;
    }

    public boolean isMerchantOn() {
        return merchantOn;
    }

    public void setMerchantOn(boolean merchantOn) {
        this.merchantOn = merchantOn;
    }

    public boolean isFuzzyOn() {
        return fuzzyOn;
    }

    public void setFuzzyOn(boolean fuzzyOn) {
        this.fuzzyOn = fuzzyOn;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

}
